import kefuApi from "@/api/declaration/mall/kefuApi"
import httpRequest from "@/config/axios/httpRequest"



// 客服会话 API
export const KeFuConversationApi = {
  // 获得客服会话列表
  getConversationList: async () => {
    return await httpRequest.get(kefuApi.GetConversationList)
  },
  // 客服会话置顶
  updateConversationPinned: async (data: any) => {
    return await httpRequest.put(kefuApi.UpdateConversationPinned, data)
  },
  // 删除客服会话
  deleteConversation: async (id: number) => {
    return await httpRequest.delete(kefuApi.DeleteConversation, { params: { id } })
  }
}
